package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class WindowPartitionClause {

    private int beginIndex;
    private int endIndex;
    private WindowPartitionColumnReferenceList windowPartitionColumnReferenceList;

    public WindowPartitionClause(int beginIndex,
                                 WindowPartitionColumnReferenceList windowPartitionColumnReferenceList) {
        this.beginIndex = beginIndex;
        this.endIndex = windowPartitionColumnReferenceList.getEndIndex();
        this.windowPartitionColumnReferenceList = windowPartitionColumnReferenceList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public WindowPartitionColumnReferenceList getWindowPartitionColumnReferenceList() {
        return windowPartitionColumnReferenceList;
    }

}
